<?php
require_once "../modelos/Usuario.php";
foreach ($_POST as $var => $valor) {
    if(empty ($valor)) {
    //echo "<strong>El campo $var est&aacute; vac&iacute;o.</strong>";
        header("Location: ../../login.php?errorcampos=si");
        break;
    }else {
        $mail=$_POST["mail"];
        $clave=$_POST["clave"];
        $u=new Usuario();
        $u->consulta($mail, $clave);
    }
}
?>
